<?php

  $mysql = new mysqli("localhost","root","root","yuedu");

  if($mysql->connect_errno != 0){
    die();
  }

  $id = $_GET["id"];

  $mysql1 = "select * from t_articles where id=${id}";

  $res = $mysql->query($mysql1);

  // print_r($res->fetch_assoc());

  print_r(json_encode($res->fetch_assoc()));


?>